package othello.client.playroom;


import othello.shared.model.GameStep;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * オセロplayroomのエントリーポイント
 * 
 * @author onjiro.mohyahya
 */
public class OthelloEntry implements EntryPoint {

	@Override
	public void onModuleLoad() {
		String boardId = RootPanel.get("gameBoardId").getElement()
				.getAttribute("value");
		String side = RootPanel.get("mySide").getElement()
				.getAttribute("value");
		RootPanel.get().add(new Othello(boardId, GameStep.Side.valueOf(side)));
	}

}
